-- GENERATED SPELL FOR [Mycah] --


function spell0_18382(pUnit, Event) --@Sporeskin,Self--
pUnit:FullCastSpellOnTarget(35230,pUnit)
pUnit:RegisterEvent('Sorts_18382', 549, 1)
end

function Sorts_18382(pUnit, Event)
local choix_sorts_18382 = math.random(0, 0)
if choix_sorts_18382 == 0 then
pUnit:RegisterEvent('spell0_18382', 1, 1)
end
end

function mob18382_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18382', math.random(1500, 3000), 1)
end

function mob18382_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18382_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18382_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18382, 1, 'mob18382_Action')
RegisterUnitEvent(18382, 2, 'mob18382_Leave')
RegisterUnitEvent(18382, 3, 'mob18382_Kill')
RegisterUnitEvent(18382, 4, 'mob18382_Die')
